home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / jmos2_03.zip / JOESP-03.TXT < prev    next >
Text File  |  1993-03-09  |  12KB  |  256 lines

  1.                      Joe's OS/2 Tips.
  2.  
  3.                    Number 3
  4.  
  5.         Written by Joseph Mckinnon (61:560/0@Worldnet)
  6.         
  7.         Downloaded from Proteus OS/2, Australia's Only SIMPLEX Site.
  8.         
  9.         Phone +61-7-800-3521    
  10.         
  11.         Hours 24 hours a day
  12.         
  13.         Speeds 300-14400, MNP.
  14.  
  15. Topics Covered
  16.  
  17. -CPS:EXtend not found Error, related stuff.
  18. -Comms Programs
  19. -Off-Line Readers
  20. -First Impressions of CSet/2 - The C compiler for OS/2
  21.  
  22. CPS-EXTEND NOT FOUND
  23.  
  24.    If you have seen this message after your system came to a screaming
  25. halt, chances are that (your not watching chances), you have either not
  26. installed the HPFS fix or your power to your machine was cut-off.  What
  27. ever, this error message can only be fixed by booting from an OS/2 BOOT
  28. DISK and checking the hard drive for corrupted sectors, with the
  29. following command.
  30.    CHKDSK D: /F:3
  31.    where D: is your Drive
  32.    and /F:3 is the highest testing level for chkdsk.
  33.  
  34.    Unfortunately OS/2 doesn't provide an easy to use FORMAT /S command,
  35. but you have to make a boot disk by hand, never fear, I've included a
  36. very nice REXX command file by Donald L. Meyer.  This MAKEBOOT.CMD will
  37. ask you questions, then make a boot disk for your system.  I recommend
  38. that you do this NOW, if you don't have one already.
  39.  
  40.    Also many 'silly' problems like vanishing Icons, keyboard problems
  41. and other silly (was working yesterday) problems, are normally fixed by
  42. the above.  Some programmes have the ability to edit your system's INI
  43. files, and don't close them correctly, thus just creating errors in the next
  44. boot-up, this will help solve your problems.
  45.  
  46.    These INI files can be 'saved' at boot-time to a floppy by adding
  47. into you config.sys file the following line -
  48.    RUN REN B:\*.INI B:\*.PRE
  49.    RUN copy d:\os2\.ini B:
  50.  
  51.    This will now save/backup your INI files to a floppy, and will give you
  52. two INI file sets to choose from, either the last one or the second last
  53. one (since, if you've got the same luck as I, your backup INIs will be
  54. corrupt as well!).
  55.  
  56. COMMS PROGRAMS
  57.  
  58.    Since many people, when exposed to OS/2 for the first time, seem to
  59. be heavily involved with DOS/WINDOWS etc, they are often caught out by OS/2's
  60. comms support.  I have had many calls with various problems with
  61. communications, from slow transfers to CRC errors all the time.
  62.  
  63.    Often these people don't realise that OS/2 is heavily hardware
  64. dependent, and that if you are using the wrong hardware, software
  65. can't really solve your problems.
  66.  
  67.     The Hardware Side
  68.  
  69.         Most people have heard/read about the mysterious 'thing' call a
  70.     UART.  This single chip, is the single most important chip for your
  71.     comport and speed.  In that, even if you are driving the latest 486-50
  72.     Mhz system, you will still suffer from CRCs (etc) with your
  73.     communications, if you've still got the older UARTs installed
  74.     (8250,16450).
  75.  
  76.         For successful communications, your UART must belong to the
  77.     family called 16550.  This family has a character buffer built into
  78.     the chip, so that while your computer is busy, with other tasks, the
  79.     UART can provide a small amount of breathing space for your comport.
  80.     Essentially, and operating system/shell which provides any form of
  81.     multi-tasking ability, requires at least the 16550 chipset.  This is
  82.     due to the design of the standard IBM PC (not XT/AT etc), in that
  83.     every time the Comport receives/sends data, the CPU must handle it
  84.     directly, rather than another piece of hardware, thus while the
  85.     software is executing another application, the comport must be able
  86.     to hold/store the incoming signals, otherwise you'll incur data lost
  87.     - hence the CRC's and aborted download/uploads.
  88.  
  89.         With a 16550 installed, you can happily multi-task away under
  90.     OS/2, if and only if you have a medium sized system (eg a 25SX
  91.     with 8 meg of ram), and if you don't go overboard with applications
  92.     (not more than 10 concurrent processes).  I've found that my system
  93.     (a 386-33 8 meg, with a v32bis modem) can happily run 10
  94.     applications, with a high speed caller on line (14.4 K baud).
  95.     ....Just like now.
  96.  
  97.         So when your thinking of upgrading your system, or fixing the
  98.     comports, on your current system, make sure you get a 16550 installed,
  99.     especially if you wish to use OS/2 to it's fullest.
  100.  
  101.     The OS/2 MODE command
  102.  
  103.         OS/2 is a very strongly defined OS, even comports must be
  104.     setup via an OS/2 mode command.  The following is the one I use on
  105.     my BBS line (com2).
  106.  
  107. MODE COM2:19200,N,8,1,XON=OFF,RTS=HS,OCTS=ON,IDSR=OFF,ODSR=OFF,TO=ON,BUFFER=ON
  108.  
  109.         Looks confusing, right?
  110.         No? Your kidding yourself.
  111.      Ok then, here's a brief run-down on the above.
  112.      19200 - Locks Com port 2 at 19200 Baud (ideal for 14.4k transfers)
  113.      N     - No Parity
  114.      8     - 8 data bits
  115.      1     - 1 stop bit
  116.      XON   - Enable/Disable XON software flow control
  117.      RTS   - Enable/Disable/Handshake Hardware RTS flow control
  118.      OCTS  - Enable/Disable CTS handshaking
  119.      TO    - Enable/Disable Time out
  120.      BUFFER- Enable/Disable the 16550 buffers.
  121.  
  122.          Ok, I said it was brief, but that's basically it.  If your
  123.      using a MNP capable modem, then you should know how to configure
  124.      your modem to allow it to use a locked DTE interface, so adjust the
  125.      19200 setting to suit your system, otherwise, just remove the 19200
  126.      part, but LEAVE the comma (eg MODE COM2:,N,....)
  127.  
  128.          To save typing, add the above, to your config.sys file, with
  129.          your favorite editor.
  130.  
  131. RUN=D:\OS2\MODE COM2:,,,,XON=OFF,RTS=HS,OCTS=ON,IDSR=OFF,ODSR=OFF,TO=ON
  132.  
  133.      This way, every time you boot up with OS/2, the mode command is
  134.      automatic.  Also the D:\OS2\ is my path to my OS/2 system
  135.      directory, remember to change this to suit your system.
  136.  
  137.      The Software Side
  138.  
  139.          Did you make it through?  If not the OS/2 command-line help,
  140.      will explain in more details.
  141.  
  142.          The accepted rule with OS/2 is as follows, OS/2 comms packages
  143.      will operate correctly at any speed level, at which both your modem
  144.      and hardware can handle, DOS stuff will only be able to be
  145.      'trusted' on systems at speeds 9600 or less.
  146.  
  147.          The DOS limitation is brought on by OS/2's Dos handling.  Since
  148.      OS/2, will only allow 1000 interupts a second, via a dos program,
  149.      some higher speed modems will not be able to provide the normal
  150.      transfers when compared to vanilla DOS.  Thus, basically if you want
  151.      to use a high speed modem, use OS/2 software.
  152.  
  153.          The OS/2 software is quite capable of performing any of your
  154.      normal communications needs.  With little restrictions (the mode command
  155.      be the main one) you can happily down/upload the latest files from
  156.      your favorite BBS (mine or course ;-), except if your running on a
  157.      limited platform, watch the number of apps your running, because
  158.      the swapping to the hard drive, etc, can cause the transfers to
  159.      slow right down, because the coms software isn't getting enough
  160.      attention from the CPU.
  161.  
  162.      TIP!  Always put the comms program in a FULL SCREEN.  Since the
  163.      system will spend to much time looking after how the program looks,
  164.      rather than how it talks to comport.  Essential for High Speed
  165.      modems.
  166.  
  167. Ok, so you've got the modem firing on all cylinders, what about a QWK
  168. reader to use.
  169.  
  170. QWK Offline readers FOR OS/2
  171.  
  172.     Currently, there are 3 known QWK compatible readers for OS/2, I've
  173. seen only two of them (I've included a GIF file showing you what one
  174. looks like.) - Mail Reader/2-MR2 (Text Based) and KWQ (PM Based apps. CUA)
  175.  
  176.     MR/2 -
  177.           This application is a very straight forward QWK reader, which has
  178.        familiar keystrokes to SLMR.  Installing requires your to edit a
  179.        INI file, otherwise no dramas.
  180.  
  181.     KWQ - (KWQ.GIF - the only screen)
  182.        This is the BEST QWK reader I've used for a long time.  Very,
  183.        very simple to install, and use.  No real need to press any keys
  184.        (unless of course you want to write a reply) just point and shot
  185.        (click, for the beginners ;-) ).  UPDATE - This program is in
  186.        Beta testing, and some OS/2 users, or my system, are having
  187.        problems, with 'Drive D: not found', on single partitioned
  188.        machinces, hopefully the author fixes this, soon.
  189.  
  190. ========================================================================
  191. FIRST IMPRESSIONS
  192.  
  193.           IBM's C Developers Workset/2
  194.           
  195.     Firstly, I've got to say that IBM is selling these at a special price
  196. of $395, till end of September.  I've got to say WOW, I ordered it, and
  197. IBM expressed couriered it to me the following day!  Now that's Service!
  198. Now to the review.
  199.  
  200.     Early one morning I noticed the courier labouring away with this
  201. MASSIVE box, I was saying to myself, I didn't order anything, not
  202. expecting to see the developer's kit for weeks.  I was astounded to find
  203. out that it was from Big Blue. Yippee!
  204.  
  205.     As usual, IBM does everything to make the most tight fitting
  206. packaging in the history of packing, it did not even rattle.  Opening
  207. the Box I discover 2 more! One the Cset/2 32-bit C compiler and PM
  208. Debugger.  The other was called Developer's WorkBench.
  209.  
  210.     I started to panic, 6 packets of disks! 15 disks in all!  Ouch, I
  211. only had 20 meg spare, no hassles, as with OS/2, the compiler and
  212. tool kits are fully selectable, to allow you to choose what you want to
  213. install.  The compiler and debugger take approximately 7 meg, and the
  214. tool kit (which is included with the workbench) takes another 7.
  215. Everything comes with sample code, and of course on line help/references.
  216.  
  217.     With the tool kit comes a program call a Dialog Editor (Didn't know I
  218. could write scripts for OS/2 ;-) ), this will actually product the
  219. dialog boxes, you see, used in other applications, and you guess it, the
  220. data files are call script files.  This utility makes life really easy,
  221. to make thousands of dialog boxes of all types/sizes/functions, now all
  222. I've got to do is learn how to tie them into my code ;-).
  223.  
  224.     Since the Workplace Shell is an object oriented system, Cset/2
  225. handles the WPS Functions as objects.  You are also provided with a tool
  226. to make subclasses of the main class libraries of the WPS model.
  227.  
  228.     The debugger has the power to trace through even the most hardest of
  229. OS/2 apps, even multi-threaded apps are no problem.  You can debug
  230. anything from CMD.EXE (OS/2 command processor) to DESCRIBE (OS/2
  231. commerial wordprocessor 32bit DTP).  I've included a few snap shots of
  232. the tools and the debugger.
  233.  
  234.     IBM's compiler is SAA (Systems Application Architecture) Level 2,
  235. which basically means that you can write code, for OS/2, which is easily
  236. ported between IBM's (and others) operating platforms (such as AS400 and
  237. mainframes).  It is an command line compiler, so you can either use your
  238. favorite editor, or use the WorkBench. The Workbench is a programmers
  239. dream, but for me it, was a quick view, then delete, I simply was out of
  240. hard drive space (only 1.5 meg in size, but with a BBS eating up all the
  241. room for OS/2 share ware, I couldn't delete the files, without my users
  242. complaining).  Thus I'am not able to show you a snap shot of the screen
  243. from workbench, but all I can say, it's brilliant.
  244.  
  245. =========================================================
  246.  
  247.    Well this wraps up another issue, there was not much in the way tips,
  248. today, mainly a review on software.  Never fear, as I get questions and
  249. such, I shall make more tips.  In this issue I've introduced many
  250. different things, like the CMD file, and GIFs.  And next, shall be
  251. things like sample code, that is once I've learnt enough, to show you all
  252. how to do it.
  253.  
  254.    Till next time, Happy OS/2ing,
  255.    Joseph Mckinnon.
  256.